/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * jpanelCotizacion.java
 *
 * Created on 13/07/2011, 08:08:29 PM
 */
package com.tubosmonterrey.cotizador.paneles;

import org.jdesktop.application.Action;

/**
 *
 * @author rsoberanis
 */
public class jpanelCotizacion extends javax.swing.JPanel {

    /** Creates new form jpanelCotizacion */
    public jpanelCotizacion() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlCotizacion = new javax.swing.JPanel();
        lblCotizacion = new javax.swing.JLabel();
        txtCotizacion = new javax.swing.JTextField();
        txtNombre = new javax.swing.JTextField();
        txtDireccion = new javax.swing.JTextField();
        txtRFC = new javax.swing.JTextField();
        txtVendedor = new javax.swing.JTextField();
        scProductos = new javax.swing.JScrollPane();
        tblProductos = new javax.swing.JTable();
        lblImporte = new javax.swing.JLabel();
        lblTotal = new javax.swing.JLabel();
        Importe = new javax.swing.JLabel();
        iva = new javax.swing.JLabel();
        total = new javax.swing.JLabel();
        lblUsuario = new javax.swing.JLabel();
        usuario = new javax.swing.JLabel();
        btnNuevoProducto = new javax.swing.JButton();
        btnEditarProducto = new javax.swing.JButton();
        javax.swing.JLabel lblCodigo = new javax.swing.JLabel();
        javax.swing.JLabel lblNombre = new javax.swing.JLabel();
        javax.swing.JLabel lblDireccion = new javax.swing.JLabel();
        javax.swing.JLabel lblRFC = new javax.swing.JLabel();
        javax.swing.JLabel lblVendedor = new javax.swing.JLabel();
        cbIva = new javax.swing.JComboBox();

        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getResourceMap(jpanelCotizacion.class);
        pnlCotizacion.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("pnlCotizacion.border.title"))); // NOI18N
        pnlCotizacion.setName("pnlCotizacion"); // NOI18N

        lblCotizacion.setText(resourceMap.getString("lblCotizacion.text")); // NOI18N
        lblCotizacion.setName("lblCotizacion"); // NOI18N

        txtCotizacion.setEditable(false);
        txtCotizacion.setText(resourceMap.getString("txtCotizacion.text")); // NOI18N
        txtCotizacion.setName("txtCotizacion"); // NOI18N

        txtNombre.setEditable(false);
        txtNombre.setText(resourceMap.getString("txtNombre.text")); // NOI18N
        txtNombre.setName("txtNombre"); // NOI18N

        txtDireccion.setEditable(false);
        txtDireccion.setText(resourceMap.getString("txtDireccion.text")); // NOI18N
        txtDireccion.setName("txtDireccion"); // NOI18N

        txtRFC.setEditable(false);
        txtRFC.setText(resourceMap.getString("txtRFC.text")); // NOI18N
        txtRFC.setName("txtRFC"); // NOI18N

        txtVendedor.setEditable(false);
        txtVendedor.setText(resourceMap.getString("txtVendedor.text")); // NOI18N
        txtVendedor.setName("txtVendedor"); // NOI18N

        scProductos.setName("scProductos"); // NOI18N

        tblProductos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblProductos.setName("tblProductos"); // NOI18N
        scProductos.setViewportView(tblProductos);

        lblImporte.setText(resourceMap.getString("lblImporte.text")); // NOI18N
        lblImporte.setName("lblImporte"); // NOI18N

        lblTotal.setText(resourceMap.getString("lblTotal.text")); // NOI18N
        lblTotal.setName("lblTotal"); // NOI18N

        Importe.setText(resourceMap.getString("Importe.text")); // NOI18N
        Importe.setName("Importe"); // NOI18N

        iva.setText(resourceMap.getString("iva.text")); // NOI18N
        iva.setName("iva"); // NOI18N

        total.setText(resourceMap.getString("total.text")); // NOI18N
        total.setName("total"); // NOI18N

        lblUsuario.setText(resourceMap.getString("lblUsuario.text")); // NOI18N
        lblUsuario.setName("lblUsuario"); // NOI18N

        usuario.setText(resourceMap.getString("usuario.text")); // NOI18N
        usuario.setName("usuario"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getActionMap(jpanelCotizacion.class, this);
        btnNuevoProducto.setAction(actionMap.get("nuevoProducto")); // NOI18N
        btnNuevoProducto.setText(resourceMap.getString("btnNuevoProducto.text")); // NOI18N
        btnNuevoProducto.setName("btnNuevoProducto"); // NOI18N

        btnEditarProducto.setAction(actionMap.get("editarProducto")); // NOI18N
        btnEditarProducto.setText(resourceMap.getString("btnEditarProducto.text")); // NOI18N
        btnEditarProducto.setName("btnEditarProducto"); // NOI18N

        lblCodigo.setFont(lblCodigo.getFont().deriveFont(lblCodigo.getFont().getStyle() | java.awt.Font.BOLD, lblCodigo.getFont().getSize()+4));
        lblCodigo.setText(resourceMap.getString("lblCodigo.text")); // NOI18N
        lblCodigo.setName("lblCodigo"); // NOI18N

        lblNombre.setFont(lblNombre.getFont().deriveFont(lblNombre.getFont().getStyle() | java.awt.Font.BOLD));
        lblNombre.setLabelFor(txtNombre);
        lblNombre.setText(resourceMap.getString("lblNombre.text")); // NOI18N
        lblNombre.setName("lblNombre"); // NOI18N

        lblDireccion.setFont(lblDireccion.getFont().deriveFont(lblDireccion.getFont().getStyle() | java.awt.Font.BOLD));
        lblDireccion.setLabelFor(txtDireccion);
        lblDireccion.setText(resourceMap.getString("lblDireccion.text")); // NOI18N
        lblDireccion.setName("lblDireccion"); // NOI18N

        lblRFC.setFont(lblRFC.getFont().deriveFont(lblRFC.getFont().getStyle() | java.awt.Font.BOLD));
        lblRFC.setLabelFor(txtRFC);
        lblRFC.setText(resourceMap.getString("lblRFC.text")); // NOI18N
        lblRFC.setName("lblRFC"); // NOI18N

        lblVendedor.setFont(lblVendedor.getFont().deriveFont(lblVendedor.getFont().getStyle() | java.awt.Font.BOLD));
        lblVendedor.setLabelFor(txtVendedor);
        lblVendedor.setText(resourceMap.getString("lblVendedor.text")); // NOI18N
        lblVendedor.setName("lblVendedor"); // NOI18N

        cbIva.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbIva.setName("cbIva"); // NOI18N

        javax.swing.GroupLayout pnlCotizacionLayout = new javax.swing.GroupLayout(pnlCotizacion);
        pnlCotizacion.setLayout(pnlCotizacionLayout);
        pnlCotizacionLayout.setHorizontalGroup(
            pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCotizacionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCotizacionLayout.createSequentialGroup()
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDireccion)
                            .addComponent(lblNombre)
                            .addComponent(lblVendedor)
                            .addComponent(lblRFC))
                        .addGap(28, 28, 28)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtVendedor, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtDireccion)
                            .addComponent(txtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                            .addComponent(txtRFC))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 190, Short.MAX_VALUE))
                    .addGroup(pnlCotizacionLayout.createSequentialGroup()
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                .addGap(229, 229, 229)
                                .addComponent(lblCodigo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 259, Short.MAX_VALUE)
                                .addComponent(lblCotizacion)
                                .addGap(18, 18, 18)
                                .addComponent(txtCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlCotizacionLayout.createSequentialGroup()
                                        .addComponent(lblUsuario)
                                        .addGap(18, 18, 18)
                                        .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                                .addComponent(lblImporte)
                                                .addGap(28, 28, 28))
                                            .addComponent(cbIva, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblTotal, javax.swing.GroupLayout.Alignment.LEADING))
                                        .addGap(82, 82, 82)
                                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Importe, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(total)
                                                .addComponent(iva, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE))))
                                    .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                        .addGap(62, 62, 62)
                                        .addComponent(scProductos, javax.swing.GroupLayout.DEFAULT_SIZE, 640, Short.MAX_VALUE)))
                                .addGap(18, 18, 18)
                                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(btnEditarProducto, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                    .addComponent(btnNuevoProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(210, 210, 210)))
                .addContainerGap())
        );
        pnlCotizacionLayout.setVerticalGroup(
            pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCotizacionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblCodigo)
                    .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblCotizacion)
                        .addComponent(txtCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCotizacionLayout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblNombre)
                            .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblDireccion)
                            .addComponent(txtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblRFC)
                            .addComponent(txtRFC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVendedor)
                            .addComponent(txtVendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(scProductos, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                .addComponent(lblImporte)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cbIva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                                .addComponent(lblTotal))
                            .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(pnlCotizacionLayout.createSequentialGroup()
                                    .addComponent(Importe)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(iva, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(total))
                                .addGroup(pnlCotizacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lblUsuario)
                                    .addComponent(usuario)))))
                    .addGroup(pnlCotizacionLayout.createSequentialGroup()
                        .addGap(182, 182, 182)
                        .addComponent(btnNuevoProducto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEditarProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, 811, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCotizacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    @Action
    public void nuevoProducto() {
    }

    @Action
    public void editarProducto() {
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Importe;
    private javax.swing.JButton btnEditarProducto;
    private javax.swing.JButton btnNuevoProducto;
    private javax.swing.JComboBox cbIva;
    private javax.swing.JLabel iva;
    private javax.swing.JLabel lblCotizacion;
    private javax.swing.JLabel lblImporte;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JLabel lblUsuario;
    private javax.swing.JPanel pnlCotizacion;
    private javax.swing.JScrollPane scProductos;
    private javax.swing.JTable tblProductos;
    private javax.swing.JLabel total;
    private javax.swing.JTextField txtCotizacion;
    private javax.swing.JTextField txtDireccion;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtRFC;
    private javax.swing.JTextField txtVendedor;
    private javax.swing.JLabel usuario;
    // End of variables declaration//GEN-END:variables
}
